package com.htsk.city.services.admin.config;

import cn.hutool.crypto.symmetric.AES;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AESConfig {
    @Bean(name = "aes")
    public AES getAES(){
        AES aes = new AES("CBC", "PKCS7Padding",
                // 密钥，可以自定义
                "HTSK00001111_key".getBytes(),
                // iv加盐，按照实际需求添加
                "HTSK00001111__iv".getBytes());
        return aes;
    }
}
